package com.peng.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.peng.model.TActivity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.peng.query.ActivityQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Love-ovo
* @description 针对表【t_activity(市场活动表)】的数据库操作Mapper
* @createDate 2025-03-14 21:28:14
* @Entity com.peng.model.TActivity
*/
@Mapper
public interface TActivityMapper extends BaseMapper<TActivity> {

    IPage<TActivity> selectActivityIPage(@Param(value="activityQuery") ActivityQuery activityQuery,
                                         Page<TActivity> tActivityPage);

    TActivity getActivityById(@Param(value="id")Integer id);

    List<TActivity> getOngoingActivity();
}




